#ifndef __SERVER_THREAD_H__
#define __SERVER_THREAD_H__

#include "event.h"

void thread_init(int nthreads, int queue_hwm, int queue_lwm, void(*callback)(struct event_base* , void*, void*), void* cbarg);
void thread_destroy();
int thread_dispatch(void* data);
int thread_dispatch_one(int idx, void* data);
void last_notify_worker_thread();

#endif
